package com.wx.service.accesstoken.web;

import com.wx.service.accesstoken.service.IAccessTokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class AccessTokenController {

  @Autowired
  private IAccessTokenService accessTokenService;

  @RequestMapping(value = "/access-token", method = RequestMethod.GET)
  @ResponseBody
  public String getAccessToken() {
    return accessTokenService.getAccessToken();
  }


}
